
<template>
  <div class="person" />
</template>
<script>
import {
  queryComplaintTree
} from '@/api/complaint'
export default {
  name: 'Person',
  components: {
  },
  data() {
    return {
      replaceFields: { title: 'name' },
      expandedKeys: [],
      backupsExpandedKeys: [],
      autoExpandParent: false,
      checkedKeys: [],
      selectedKeys: [],
      searchValue: '',
      treeData: null,
      searchStr: '',
    };
  },
  created(){
      queryComplaintTree({name:''}).then(res=>{
               res.data[0].scopedSlots= { title: 'title' }
         res.data[0].children.forEach(item=>{
             item.scopedSlots= { title: 'title' }
             item.children.forEach(ite=>{
             ite.scopedSlots= { title: 'title' }
             })
         })
          this.treeData=res.data[0].children
      })
  },
  methods: {

  },
};
</script>
<style scope>
</style>
